<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
老师姓名: {{ teacher.name }}
<br>
老师年龄: {{ teacher.age }}
<br>
老师性别: {{ teacher.gender }}
<br>
老师的兴趣有:
<ul>
    {% for hobby in teacher.hobby %}
        <li>
        {{ hobby }}
        </li>
    {% endfor %}

</ul>
</body>
</html>